﻿using System.Data;
using System.Data.SqlClient;

namespace TimeWork
{
    public class TimeSystem
    {
        // Lay ve cong viec theo parentId
        public static DataTable GetWork(int parentId)
        {
            string strCommandText = "spGetWork";
            SqlParameter[] paraLocal = new SqlParameter[1];
            paraLocal[0] = new SqlParameter("@ParentId", parentId);
            return SqlHelper.ExecuteData(CommandType.StoredProcedure, strCommandText, paraLocal);
        }
    }
}